package com.itheima.d5_arrays;

public class CompareByData {
    public static int comparebyAge(Student o1, Student o2) {
        return o1.getAge() - o2.getAge();
    }
    public int compareDecs(Student o1, Student o2){
        return o2.getAge() - o1.getAge();
    }
}
